using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WebApp.Models
{
    public class REL_Ordine_Variante
    {
        public REL_Ordine_Variante()
        {
            this.SET_Variante = new HashSet<SET_Variante>();
        }
        [Key]
        public Guid Guid { get; set; }
        public Byte[] Timestamp { get; set; }
        public Decimal Prezzo { get; set; }
        public Guid Ordine { get; set; }
        public Guid Piatto { get; set; }
        [ForeignKey("Ordine")]
        public virtual SET_Ordine SET_Ordine { get; set; }
        [ForeignKey("Piatto")]
        public virtual ENT_Piatto ENT_Piatto { get; set; }
        public virtual ICollection<SET_Variante> SET_Variante { get; set; }
    }
    
}
